package com.qiezi.project.activity;


import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.qiezi.R;
import com.qiezi.base.BaseMvpActivity;

import butterknife.BindView;

public class SettingActivity extends BaseMvpActivity implements View.OnClickListener {

    @BindView(R.id.tv_back)
    TextView tvBack;

    @BindView(R.id.tv_topBar_title)
    TextView tvTopBarTitle;

    private void initTopbar(){
        Typeface iconfont = Typeface.createFromAsset(getAssets(), "fonts/iconfont.ttf");
        tvBack.setTypeface(iconfont);
        tvTopBarTitle.setText("设置");
    }

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_setting;
    }

    @Override
    protected void initData(Bundle saveBundle) {
        initTopbar();
    }

    @Override
    protected void initListener() {
        tvBack.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.tv_back:
                finish();
                break;
        }
    }
}
